package com.doform.android.xianggucheng.bean.request_bean;

import com.doform.android.xianggucheng.help.AppHelp;
import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-08.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqSubmitInLibrary {
    /**
     * _savetype 	是 	string 	操作类型：新增：add ； 编辑：update
     * id 	否 	string 	采购入库ID
     * guid 	否 	string 	采购入库GUID
     * whid 	是 	string 	仓库id
     * whname 	是 	string 	仓库name
     * chsupplierid 	是 	string 	结算供应商ID
     * chsuppliername 	是 	string 	结算供应商name
     * buydate 	是 	string 	采购日期
     * apname 	是 	string 	采购人
     * money 	否 	string 	采购单合计费用
     * remark 	否 	string 	备注说明
     * apimg 	否 	string 	申请表图片ID
     * apimgfile 	否 	string 	申请表文件
     * cgimg 	否 	string 	入库文件图片ID
     * method 	是 	string 	结算方式
     * state 	是 	string 	｛’状态{-9:已删除的,1:新采购,5:已入库,7:已回款}’｝
     * debug 	是 	string 	开启：true
     */

    private boolean debug = AppHelp.getInstance().Debug;
    private String state = "5";
    private String _savetype = "update";
    private String id;
    private String guid;
    private String whid;
    private String whname;
    private String buydate;
    private String apname;
    private String remark;
    private String method;

    public ReqSubmitInLibrary(String mId, String mGuid, String mLibraryId, String mLibraryName
            , String mTime, String mPerson, String mRemark, String mClearTypeId) {
        this.id = mId;
        this.guid = mGuid;
        this.whid = mLibraryId;
        this.whname = mLibraryName;
        this.buydate = mTime;
        this.apname = mPerson;
        this.remark = mRemark;
        this.method = mClearTypeId;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
